]> dgit.raspbian.org Git - gnome-shell.git/commit
screenshot: Return error when stream creation fails
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 24 Mar 2020 06:44:31 +0000 (07:44 +0100)
committerCarlos Garnacho <mrgarnacho@gmail.com>
Tue, 24 Mar 2020 11:29:53 +0000 (11:29 +0000)
commiteb51942a051f18f5993914968fcefb00a56c3625
treea406669711f270f805dd186c72a05b0e547b878a
parent23e5cd4e1047be36f3124d4bafc193e0c22917fb
screenshot: Return error when stream creation fails

The Shell.Screenshot API expects valid output streams for writing the
completed screenshot, not NULL.

Handle this properly by returning an error instead of passing it on
to the screenshot.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1123
js/ui/screenshot.js